﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;


namespace LoginUserCheckPayment
{
    /// <summary>
    /// Strona służąca do zalogowania się opiekunów
    /// </summary>
    public partial class _Default : System.Web.UI.Page
    {
        public string loginName { get; set; }
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        /// <summary>
        /// Handles the LoggedIn event of the Login1 control - pobieramy dane jakie podał uzytkownik i przechodzimy na strone z płatnościami.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        protected void Login1_LoggedIn(object sender, EventArgs e)
        {
            loginName = Login1.UserName;
            Server.Transfer("~/About.aspx");

        }
    }
}
